<%--
  Created by IntelliJ IDEA.
  User: zhaoyang
  Date: 2020/8/6
  Time: 10:54 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Storage2</title>
</head>
<body>
<script>
    // sessionStorage.setItem("key1", "value1");
    // localStorage.setItem("key2", "value2");

    alert(sessionStorage.getItem("key1"));
    alert(localStorage.getItem("key2"));

</script>

</body>
</html>
